
import request from '../utils/request' //引入axios的封装方法
import cfg from '@/config/config'

const fileUploadFun = {
  // 文件上传
  uploadFiles: (param) => {
    return request(cfg.apiUrl + 'uploadFile/upload2', param)
  },
  // 文件上传
  uploadFilesHy: (param) => {
    return request('post',cfg.apiUrl + 'api/oss/imgUpload', param)
  },
  // 文件上传，测试
  uploadFilesSfl: (param) => {
    return request('post',cfg.apiFileUrl + 'file/uploadEffectiveFile', param)
  },
  getVisitorInformation: (param) => {
    return request('post',cfg.apiUrl + 'api/visitor/getVisitInfoList', param)
  },
};
export default fileUploadFun;
